// by Xeno

private "_exitj";
if (!X_Client) exitWith {};

if (!d_heli_taxi_available) exitWith {"An air taxi is already in the air!" call XfHQChat};

if (FLAG_BASE distance player < 500) exitWith {"You are less than 500 m away from the base, no air taxi for you!" call XfHQChat};

[player, "Calling in air taxi..."] call XfSideChat;

sleep 5;

"Air taxi will start in a few seconds, stand by. Stay at your position!" call XfHQChat;

d_heli_taxi_available = false;

["d_air_taxi", player] call XNetCallEvent;